package com.os.ch2.prepost;

/**
 * @Author Matt
 * @Date 2022-01-10
 * @Desc: 使用@bean形式的bean
 * @Version V1.0
 */
public class BeanWayService {

    public void init(){
        System.out.println("@bean-init-method");
    }

    public BeanWayService(){
        super();
        System.out.println("初始化构造函数-beanWayService");
    }

    public void destory(){
        System.out.println("@bean-destory-method");
    }
}
